@font-face {
  font-family: 'NotoSerifSC';
  src: local('Noto Serif SC'), local('NotoSerifSC');
  font-weight: 400;
}

:root {
  --bg: #0a0b10;
  --fg: #e6e6e6;
  --muted: #9aa0a6;
  --accent: #6ee7ff;
  --accent2: #b47cff;
  --card: #12131a;
  --border: #1e2029;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -20%, rgba(110,231,255,0.06), transparent),
              radial-gradient(800px 500px at -10% 120%, rgba(180,124,255,0.05), transparent),
              var(--bg);
  color: var(--fg);
  font-family: NotoSerifSC, 'Source Han Serif SC', 'Microsoft YaHei', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.page { max-width: 860px; margin: 0 auto; padding: 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.topbar h1 { font-size: 20px; font-weight: 600; letter-spacing: 1px; }
.actions button {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 8px 12px; margin-left: 8px; border-radius: 8px;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.actions button:hover { border-color: var(--accent); color: var(--accent); }

.chapter { margin-top: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.text { padding: 20px; line-height: 1.8; font-size: 16px; white-space: pre-wrap; }

.choices { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.choice-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  background: transparent; color: var(--fg);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer;
  transition: border-color .2s, transform .06s, box-shadow .2s;
}
.choice-btn:hover { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(110,231,255,0.08); }
.choice-btn:active { transform: scale(.995); }
.choice-btn.expansion { border-color: var(--accent2); }
.choice-btn.expansion:hover { border-color: var(--accent2); box-shadow: 0 0 0 2px rgba(180,124,255,0.1); }
.choice-label { flex: 1; }
.badge-expansion {
  margin-left: 10px; font-size: 12px; letter-spacing: 1px;
  color: #fff; background: linear-gradient(90deg, #9c6ade, #6ee7ff);
  border-radius: 999px; padding: 4px 8px; border: 0; opacity: 0.9;
}

.status { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; color: var(--muted); }
.status .vars, .status .achieves { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; width: 49%; min-height: 40px; }
.status .vars b { color: var(--accent2); }